Skip to content

Instantly share code, notes, and snippets.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@ChaseC99
ChaseC99 / GoogleFormsToDiscord.md
Last active June 29, 2026 19:44
How to connect Google Form Responses with Discord

Connecting Google Form Responses with Discord

This Gist describes how to use Google App Scripts to post a message on Discord whenever a Google Form is submitted.

  1. Create a Discord Webhook.
  2. Create a Google Form.
  3. Open the Google App Scripts Editor
    In the top right corner of the Google Form, click the vertical menu bar (⋮), and select "Script editor". image
  4. Create a function that does the following:
  • Loads the last response in the form.
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/ecdsa"
"crypto/elliptic"
"crypto/rand"
"crypto/sha256"
"encoding/hex"
@tzmartin
tzmartin / embedded-file-viewer.md
Last active June 29, 2026 19:42
Embedded File Viewer: Google Drive, OneDrive

Office Web Apps Viewer

('.ppt' '.pptx' '.doc', '.docx', '.xls', '.xlsx')

http://view.officeapps.live.com/op/view.aspx?src=[OFFICE_FILE_URL]

<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=[OFFICE_FILE_URL]' width='px' height='px' frameborder='0'>
</iframe>

OneDrive Embed Links

@PyScriptPlus
PyScriptPlus / main.c
Last active June 29, 2026 19:32
Memory Allocate with C/C++
#include <stdio.h>
#include <stdlib.h>
int main() {
int* p = (int*)malloc(sizeof(int) * 5); // 20 Byte
*p = 22;
p[2] = 45;
// p[10] = 33; // Memory Leak
printf("%d \t %d \t %d \n", p[0], p[2], *p);